<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Guido
 * Date: 12/06/13
 * Time: 20:57
 * To change this template use File | Settings | File Templates.
 */
namespace dato;

class info extends dato{
    protected $info;

    function __construct()
    {
        global $db;

        $sSql = "select id from datos";

        $res = $db->execSql($sSql);

        if ($res){
            while ($row = mysqli_fetch_assoc($res)) {
                $this->info[] = new dato($row["id"]);;
            }
        }
    }

    /**
     * @return mixed
     */
    public function getInfo()
    {
        return $this->info;
    }




}